import React, { useState } from 'react'
import { Map } from 'immutable'

export default function App() {
  const [obj] = useState({
    name: 'miaohao',
    age: 23
  })
  let obj2 = Map(obj);
  let obj3 = obj2.set('name', 'haoge')
  return (
    <div>
        {obj.name}-- {obj2.get('name')}-- {obj3.get('name')}
    </div>
  )
}
